﻿@model CNav.Model.ConsumerModel
@{
    ViewBag.Title = "Create new consumer";
}


    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Consumer Profile</legend>
        <ol>
            <li>
                @Html.LabelFor(m => m.Title)
                @Html.DropDownListFor(model => model.Title, new SelectList(Model.TitleList))
                <br />
                @Html.ValidationMessageFor(model => model.Title)
            </li>

            <li>
                @Html.LabelFor(m => m.FirstName)
                @Html.TextBoxFor(model => model.FirstName)
                <br />
                @Html.ValidationMessageFor(model => model.FirstName)
            </li>

            <li>
                @Html.LabelFor(m => m.MiddleName)
                @Html.TextBoxFor(model => model.MiddleName)
                <br />
                @Html.ValidationMessageFor(model => model.MiddleName)
            </li>

            <li>
                @Html.LabelFor(m => m.LastName)
                @Html.TextBoxFor(model => model.LastName)
                <br />
                @Html.ValidationMessageFor(model => model.LastName)
            </li>

            <li>
                @Html.LabelFor(m => m.BirthDate, "Birth date (DD/MM/YYYY)")
                @Html.TextBoxFor(model => model.BirthDate)
                <br />
                @Html.ValidationMessageFor(model => model.BirthDate)
            </li>

            <li>
                @Html.LabelFor(m => m.Email)
                @Html.TextBoxFor(model => model.Email)
                <br />
                @Html.ValidationMessageFor(model => model.Email)
            </li>
            <li>
                @Html.LabelFor(m => m.PhoneNumber)
                @Html.TextBoxFor(m => m.PhoneNumber)
                <br />
                @Html.ValidationMessageFor(m => m.PhoneNumber)
            </li>
            <li>
                @Html.LabelFor(m => m.FaxNumber)
                @Html.TextBoxFor(m => m.FaxNumber)
            </li>
        </ol>
    </fieldset>
    
<fieldset>
    <legend>Address Details</legend>
    @Html.Partial("Address", Model.AddressModel)
</fieldset>

<script>
    cc.DatepickerWithYearMonth("#BirthDate");
</script>
